package com.spider.admin.service.app;

import com.spider.admin.exception.SpiderException;
import com.spider.admin.http.entity.PageResult;
import com.spider.admin.store.primary.model.AppInfo;
import jakarta.validation.constraints.NotEmpty;

public interface AppService {
    int saveApp(AppInfo appInfo)throws SpiderException;

    int updateApp(AppInfo appInfo,String pid)throws SpiderException;

    int activeApp(String pid)throws SpiderException;

    int archiveApp(String pid)throws SpiderException;

    AppInfo queryAppById(String pid)throws SpiderException;

    PageResult<AppInfo> queryAppByTenantId(@NotEmpty(message = "查询租户ID不能为空") String tenantId, Integer page, Integer pageSize, String appName, String cloudId, String appStatus);
}
